function path=GetPath2(close,start,goal)

% ind=1;
path=[goal(1:2)];
while 1
    if isequal(path(1,1:2),start)   
        break;
    end
%     before_point=
    [line1,~]=find(close(:,1)==path(1,1));
    [line2,~]=find(close(line1,2)==path(1,2));
    path=[close(line1(line2),3:4);path];
    
end
end
